﻿using System.ComponentModel.DataAnnotations;

namespace Entity;

/// <summary>
/// 代理商
/// </summary>
public class Proxy : MoneyBaseEntity
{
    /// <summary>
    /// 
    /// </summary>
    [Required(ErrorMessage = "请输入代理名称")]
    public string? Name { get; set; }

    /// <summary>
    /// 
    /// </summary>
    [Required(ErrorMessage = "请输入登录密码")]
    public string? Pwd { get; set; }

    /// <summary>
    /// 
    /// </summary>
    [Required(ErrorMessage = "请输入手机号"),
    MaxLength(11, ErrorMessage = "请输入正确的手机号"),
    MinLength(11, ErrorMessage = "请输入正确的手机号")]
    public string? Phone { get; set; }

    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(IsNullable = true)]
    public string? Avatar { get; set; }

  

}
